﻿/**
 * 提供密码创建规则
 * 
 * **/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VipSys.Business
{
    public class AccountCreat
    {
        private static AccountCreat m_Instance = null;
        /// <summary>
        /// 单实例
        /// </summary>
        public static AccountCreat Instance
        {
            get
            {
                if (m_Instance == null)
                    m_Instance = new AccountCreat();
                return m_Instance;
            }
        }

        /// <summary>
        /// 截取手机号码后六位，得到考生登陆默认密码
        /// </summary>
        /// <param name="Tel"></param>
        /// <returns></returns>
        public string GetPwd(string Tel)
        {
            if (Tel == null)
                return string.Empty;
            if (Tel.Length >= 6)
            {
               // return Tel.Substring(Tel.Length - 6, 6);
               return "111111";  //改成默认密码 六个1
            }
            return string.Empty;
        }
    }
}
